package com.liuyang.service.impl;

import com.liuyang.entity.Materials;
import com.liuyang.mapper.MaterialsMapper;
import com.liuyang.service.MaterialsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 作者:caleb
 * @since 2022-02-23
 */
@Service
public class MaterialsServiceImpl extends ServiceImpl<MaterialsMapper, Materials> implements MaterialsService {

    @Autowired
    private MaterialsMapper materialsMapper;

    @Override
    public Materials queryMaterialsById(String id) {
        return materialsMapper.queryMaterialsById(id);
    }

    @Override
    public List<Map> queryDisasterType() {
        return materialsMapper.queryDisasterType();
    }

    @Override
    public List<Map> queryDemandType() {
        return materialsMapper.queryDemandType();
    }

}
